package com.freecloud.whispered.auth.service;

import com.freecloud.framework.service.InterfaceBaseService;
import com.freecloud.whispered.auth.entity.SysRoleMenuEntity;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 角色与菜单对应关系
 * 
 * @author maomao
 * @email 138383877@qq.com
 */
@Service
public interface SysRoleMenuService extends InterfaceBaseService<SysRoleMenuEntity,Long> {
	
	void saveOrUpdate(Long roleId, List<Long> menuIdList);
	
	/**
	 * 根据角色ID，获取菜单ID列表
	 */
	List<Long> queryMenuIdList(Long roleId);

}
